package com.ctshk.rpc.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctshk.rpc.system.entity.SysPermissionData;
import com.ctshk.rpc.system.mapper.SysPermissionDataMapper;
import com.ctshk.rpc.system.service.ISysPermissionDataService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Collection;

/**
 * <p>
 * 数据权限 服务实现类
 * </p>
 *
 * @author 谢诗宏
 * @since 2020-12-31
 */
@Service
public class SysPermissionDataServiceImpl extends ServiceImpl<SysPermissionDataMapper, SysPermissionData> implements ISysPermissionDataService {

    @Override
    public <T> boolean insertAll(Collection<T> entityList) {
        ArrayList<SysPermissionData> list = (ArrayList<SysPermissionData>) entityList;
        return super.saveBatch(list);
    }
}
